projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d219bd4
)
broadway: Cast g_object_ref() to the right type
author
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 14:52:22 +0000
(14:52 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000
(23:28 +0000)
In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.
gdk/broadway/broadway-server.c
patch
|
blob
|
history
diff --git
a/gdk/broadway/broadway-server.c
b/gdk/broadway/broadway-server.c
index 3d5f29b289c5e10f180e8702c83b483e03abc467..b53f4edf124262b630ac84a2fdc3e00c68d46dbe 100644
(file)
--- a/
gdk/broadway/broadway-server.c
+++ b/
gdk/broadway/broadway-server.c
@@
-1267,7
+1267,7
@@
handle_incoming_connection (GSocketService *service,
}
else
{
- request->connection =
g_object_ref (connection
);
+ request->connection =
G_IO_STREAM (g_object_ref (connection)
);
}
in = g_io_stream_get_input_stream (request->connection);